#ifndef SPREDSHEET_H
#define SPREDSHEET_H

#include <QTableWidget>
#include <QMessageBox>
#include <QPushButton>
#include <QBoxLayout>
#include <QWidget>

class spredsheet : public QDialog
{
    Q_OBJECT
private:
    QTableWidget *table;

    QPushButton *okButton;
    QPushButton *cancelButton;

    QVBoxLayout *mainLayout;
    QHBoxLayout *buttonsLayout;

public:
    spredsheet(QWidget *parent = 0);
    void setSize(int n, int m);
    void clear();

public slots:
    void okPressed();

signals:
    void tableMade( QVector<QVector<int> > inputTable );
};

#endif // SPREDSHEET_H
